import request from '@/utils/request'

// 查询就诊信息列表
export function listTreatment(query) {
  return request({
    url: '/medical/treatment/list',
    method: 'get',
    params: query
  })
}

// 查询就诊信息详细
export function getTreatment(id) {
  return request({
    url: '/medical/treatment/' + id,
    method: 'get'
  })
}

// 新增就诊信息
export function addTreatment(data) {
  return request({
    url: '/medical/treatment',
    method: 'post',
    data: data
  })
}

// 修改就诊信息
export function updateTreatment(data) {
  return request({
    url: '/medical/treatment',
    method: 'put',
    data: data
  })
}

// 删除就诊信息
export function delTreatment(id) {
  return request({
    url: '/medical/treatment/' + id,
    method: 'delete'
  })
}
